package run.microservice.stock.listener;

import com.mybatisflex.annotation.UpdateListener;
import run.microservice.stock.model.entity.BaseEntity;

/**
 * @author lunfy
 * @description:
 * @date 2024-04-22 15:44
 */
public class BaseUpdateListener implements UpdateListener {

    @Override
    public void onUpdate(Object o) {
        BaseEntity baseEntity = (BaseEntity) o;
        baseEntity.setUpdatedBy(1L);
    }
}
